package com.dhcc.dao;

import com.dhcc.utils.PageControl;
import com.dhcc.utils.Pager;

import java.util.List;

/**
 * dao��CRUD�ӿ�
 * Created by Administrator on 2017/1/18.
 */


public interface BaseDao<T> {

    public void save(T t);

    public void update(T t);

    public void delete(T t);

    public T get(Long id);

    public List<T> query();

    /**
     * 带分页的查询
     *
     * @param pageView
     * @return
     */
    public Pager<T> query(PageControl pc);

    /**
     * 批量删除
     *
     * @param ids
     * @return 成功返回1，失败返加0
     */
    public int datchDelete(String ids);


}
